package br.com.knowledge.persistence.hibernate.entities;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * CadUsuarioprojeto entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "abf_metodoobjetocoluna", schema = "public")
public class AbfMetodoobjetocoluna implements java.io.Serializable {

	// Fields

	private Integer id;
	private BcdColunas bcdColunas;
	private FntMetodoobjeto fntMetodoObjeto;
	private String acao;

	// Constructors

	/** default constructor */
	public AbfMetodoobjetocoluna() {
	}

	

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "bcd_coluna_id", nullable = false)
	public BcdColunas getBcdColunas() {
		return this.bcdColunas;
	}

	public void setBcdColunas(BcdColunas bcdColunas) {
		this.bcdColunas = bcdColunas;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "fnt_metodoobjeto_id", nullable = false)
	public FntMetodoobjeto getFntMetodoobjeto() {
		return this.fntMetodoObjeto;
	}

	public void setFntMetodoobjeto(FntMetodoobjeto fntMetodoObjeto) {
		this.fntMetodoObjeto = fntMetodoObjeto;
	}

	@Column(name = "acao", length = 256)
	public String getAcao() {
		return this.acao;
	}

	public void setAcao(String acao) {
		this.acao = acao;
	}

}